import Vue from 'vue'
import Router from 'vue-router'
// 页面组件
import Home from '@/pages/Home.vue'
import Login from '@/pages/auth/Login.vue'
import Register from '@/pages/auth/Register.vue'
import Profile from '@/pages/Profile.vue'
import EditProfile from '@/pages/EditProfile.vue'
import MyFollow from '@/pages/MyFollow.vue'
import Test from '@/pages/Test.vue'
import MyComments from '@/pages/MyComments.vue'
import MyCollections from '@/pages/MyCollections.vue'
import PostDetail from '@/pages/PostDetail.vue'
import MoreComments from '@/pages/MoreComments.vue'
import Search from '@/pages/Search.vue'
import TabManager from '../pages/TabManager.vue'



Vue.use(Router)

export default new Router({
  routes: [{
      path: '/',
      name: 'homePage',
      component: Home
    },
    {
      path: '/login',
      name: 'loginPage',
      component: Login
    },
    {
      path: '/register',
      name: "registerPage",
      component: Register
    },
    {
      path: '/profile',
      name: "profilePage",
      component: Profile
    },
    {
      path: '/editprofile',
      name: 'editprofilePage',
      component: EditProfile
    },
    {
      path: '/myFollow',
      name: 'myFollowPage',
      component: MyFollow
    },
    {
      path: '/test',
      name: 'testPage',
      component: Test
    },
    {
      path: '/mycomments',
      name: 'mycommentsPage',
      component: MyComments
    },
    {
      path: '/mycollections',
      name: 'mycollectionsPage',
      component: MyCollections
    },
    {
      path: '/postdetail/:id',
      name: 'postDetailPage',
      component: PostDetail
    },
    {
      path: '/morecomments/:id',
      name: 'moreCommentsPage',
      component: MoreComments
    },
    {
      path: '/search',
      name: 'searchPage',
      component: Search
    },
    {
      path: '/tabmanager',
      name: 'tabManagerPage',
      component: TabManager
    }

  ]
})
